package com.stqf.scala.grammar.funexp

/**
  * Created by ASUS on 2018-01-31.
  */
object RationalLearn {
  def main(args: Array[String]): Unit = {
    val rational1 = new Rational(1, 5)
    val rational2 = new Rational(1, 2)
    println(rational1.add(rational2))
    var a = -15
    val abs = a.abs
    println(abs)
    println()
  }
}
